package com.test.pattern.strategy;

/**
 * @ClassName: Client
 * @description:
 * @author: Mr du
 * @create: 2024-02-28 22:47
 */
public class Client {

    public static void main(String[] args) {
        Strategy A = new StrategyA();
        SalesMan salesMan = new SalesMan(A);
        salesMan.salesManShow();
        System.out.println("======================================");
        Strategy B = new StrategyB();
        salesMan.setStrategy(B);
        salesMan.salesManShow();
        System.out.println("======================================");
        Strategy C = new StrategyC();
        salesMan.setStrategy(C);
        salesMan.salesManShow();
    }
}
